package com.klun.concTrueWar.RMI.Server;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.rmi.RemoteException;

public class WarehoseServer {
    public static void main(String[] args) throws NamingException, RemoteException {
        System.out.println("Con>>>>>>>......");
        WarehouseImpl centralWarehouse = new WarehouseImpl();

        Context namingContext = new InitialContext();

        namingContext.bind("rmi:central_warehouse", centralWarehouse);
        System.out.println("Waiting for invocations from clients");

    }
}
